//
//  DemoViewController.swift
//  weibo_swift
//
//  Created by 紫荆秋雪 on 16/12/4.
//  Copyright © 2016年 紫荆秋雪. All rights reserved.
//

import UIKit

class DemoViewController: RevanBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    
    
    //MARK: - 1、下一个监听方法
    @objc func nextClick() {
        //目标VC
        let nextVC = DemoViewController()
        navigationController?.pushViewController(nextVC, animated: true)
        
    }
}



extension DemoViewController {
    
    override func setupNavigationBar() {
        super.setupNavigationBar()
        //设置右侧导航栏上的Item
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(nextClick))
    }
}
